﻿@using Super.Entities;
@model List<User>
@using Super.Infrastructure;
@using Super.DomainService;
@using Super.Common;
@{
    ViewBag.Title = "用户管理";
    
}

<div class="pageHeader">
    <form id="pagerForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="/admin/user/index" method="post">
    <div class="searchBar">
        <ul class="searchContent">
            <li>
                @Html.DWZTextBox("keyword", "关键词【用户名、电话、UID、简码】：")
            </li>
           
            <li><label>创建时间：</label> 
            <input id="startTime" name="startTime" class="date" alt="请选择起始日期！"  />
            <input id="endTime" name="endTime" class="date" alt="请选择起始日期！" /> 
            </li>
        </ul>
        @Html.SubBar()
    </div>
    <input type="hidden" name="pageNum" value="1" /><!--【必须】value=1可以写死-->
    <input type="hidden" name="orderDirection" value="@ViewBag.orderDirection" /><!--【可选】升序|降序-->
    <input type="hidden" name="orderField" value="@ViewBag.orderField"/><!--【可选】升序|降序-->
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="/admin/user/edit" target="navTab" mask="true" height="600"><span>添加</span></a></li>
            <li><a class="delete" href="/admin/user/delete?id={sid_user}" target="ajaxTodo" title="确定要删除吗？" warn="请选择一个用户"><span>删除</span></a></li>
            <li><a class="edit" href="/admin/user/edit?id={sid_user}" target="navTab" mask="true" height="600" warn="请选择一个用户"><span>修改</span></a></li>
        </ul>
    </div>
    <div layouth="116" id="w_list_print">
        <table class="list" width="98%" targettype="navTab" asc="asc" desc="desc">
            <thead>
                <tr>
                    <th width="80" orderfield="cbprice" class="@ViewBag.orderDirection">用户编号</th>
                    <th width="80">用户名称</th>
                    <th width="50">简码</th>
                    <th width="100">联系电话</th>
                    <th width="70">积分</th>
                    <th width="100">身份证</th>
                    <th width="200" >家庭住址</th>
                    <th width="70">余额</th>
                    <th width="70">消费金额</th>
                    <th width="100" orderfield="createTime" class="@ViewBag.orderDirection">创建时间</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr target="sid_user" rel="@item.ID">
                        <td>@item.UID</td>
                        <td>@item.Name</td>
                        <td>@item.JianMa</td>
                        <td>@item.Telephone</td>
                        <td>@item.Integral</td>
                        <td>@item.IDCards</td>
                        <td>@item.Address</td>
                        <td>@item.Money</td>
                        <td>@item.ConsumeMoney</td>
                        <td>@item.CreateTime</td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
    <div class="panelBar">
        <div class="pages">
            <span>共 @ViewBag.RecordCount 条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="@ViewBag.RecordCount" numperpage="@ViewBag.PageSize" pagenumshown="10" currentpage="@ViewBag.PageIndex">
        </div>
    </div>
</div>
